<?php

namespace App\Datas;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;

class DrawingStyle
{
    public function getList($drawingId, $lanage = 'en') {
        $data = DB::table('drawing_style')->where(['lanage' => $lanage, 'drawing_id' => $drawingId])->orderBy('order', 'desc')->get(['*', DB::raw("CONCAT(image,'!webp') AS image")]);
        return $data->toArray();
    }
}